package com.lizanyi.teaFriend.service;

import com.lizanyi.teaFriend.pojo.Goods;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsService {

    //查询商品根据gid
    Goods getGoodsListBygid(Integer gid);


    //更新商品
    int updateGoodById(Integer gid,String gname,Double price,Integer num);

    //删除商品
    int deleteGoodById(Integer id);

    //添加商品
    int addGood(Integer gid,String gname,Double price,Integer num);

}
